mini-os: make frontends and xenbus optional
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 9 Feb 2012 18:33:32 +0000 (18:33 +0000)
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 9 Feb 2012 18:33:32 +0000 (18:33 +0000)
commit434a41d81776964364f426e3132489003c05e5df
tree1eb8a6a1846c155e049bf71d6c988fd52b3df458
parent8111e0c59583ac278ecd07ca4c6be04d8802e567
mini-os: make frontends and xenbus optional

This adds compile-time logic to disable certain frontends in mini-os:
 - pcifront is disabled by default, enabled for ioemu
 - blkfront, netfront, fbfront, kbdfront, consfront are enabled by default
 - xenbus is required for any frontend, and is enabled by default

If all frontends and xenbus are disabled, mini-os will run without
needing to communicate with xenstore, making it suitable to run the
xenstore daemon. The console frontend is not required for the initial
console, only consoles opened via openpt or ptmx.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
extras/mini-os/Makefile
extras/mini-os/console/console.c
extras/mini-os/console/console.h [new file with mode: 0644]
extras/mini-os/console/xenbus.c [new file with mode: 0644]
extras/mini-os/console/xencons_ring.c
extras/mini-os/include/lib.h
extras/mini-os/include/xenbus.h
extras/mini-os/kernel.c
extras/mini-os/lib/sys.c
extras/mini-os/main.c
stubdom/ioemu-minios.cfg